<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 肖林
  Date: 2018/5/29
  Time: 16:55
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>用户列表  </title>
</head>
<body>

<style>
    table{
        border: 1px solid ;
        padding: 10px;
    }

</style>
        <h1>用户列表</h1>
        <table>
            <tr>
                <td>id</td>
                <td>username</td>
                <td>password</td>
            </tr>

            <c:forEach  var="user" items="${userList}">
                <tr>
                    <td>${user.id}</td>
                    <td>${user.username}</td>
                    <td>${user.password}</td>
                </tr>
            </c:forEach>
        </table>
</body>
</html>
